# -*- coding: utf-8 -*-
# @Time : 2021/9/6 17:49
# @Author : 唐宁
# @Site :  配置文件类
# @File : Setting.py
# @Software: PyCharm
from pydantic import BaseSettings


class Setting(BaseSettings):
    # 秘钥
    SECRET_KEY: str = "WZ!!V%j**OD^dniZ"
    # 过期时间(s)
    EXPIRE_TIME: int = 30000
    # 数据库连接
    DB_URL: str = "127.0.0.1"
    DB_PORT: int = 3306
    # 账号
    DB_ACCOUNT: str = "root"
    # 密码
    DB_PWD: str = "root"
    # 数据库名称
    DB_NAME: str = "test"
    # 小文件上传大小限制(10M)
    SMALL_FILE_LIMIT: int = 10 * 1024 * 1024
    # 文件上传根目录
    FILE_BASE_PATH: str = "D:\\pythonUpload\\"


# 实例化配置对象
settings = Setting()
